Previous topicNext topic
Help > Errors and Error Trapping > Compile Time Errors >
Error 517 - OPTIONAL requires CDECL or SDECL

OPTIONAL requires CDECL or SDECL - The OPTIONAL (or OPT) clause in a DECLARE, SUB, FUNCTION, METHOD, or PROPERTY statement requires the SDECL or CDECL calling convention. You may not use OPTIONAL or OPT parameters with BDECL calling convention.